import Cookies from 'js-cookie'
// 上面这个库是方便处理 cookie 的工具
// Cookies.set(key, value)
// Cookies.get(key)
// Cookies.remove(key)

const TokenKey = 'hrToken'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
